//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace OpenLS.Chart.UI
{
    public class ChartDrawingElement
    {


        public static Brush GetLineStroke(DependencyObject obj)
        {
            return (Brush)obj.GetValue(LineStrokeProperty);
        }

        public static void SetLineStroke(DependencyObject obj, Brush value)
        {
            obj.SetValue(LineStrokeProperty, value);
        }

        // Using a DependencyProperty as the backing store for LineStroke.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty LineStrokeProperty =
            DependencyProperty.RegisterAttached("LineStroke", typeof(Brush), typeof(ChartDrawingElement), new FrameworkPropertyMetadata(Brushes.Gray, FrameworkPropertyMetadataOptions.Inherits));



        public static double GetLineThickness(DependencyObject obj)
        {
            return (double)obj.GetValue(LineThicknessProperty);
        }

        public static void SetLineThickness(DependencyObject obj, double value)
        {
            obj.SetValue(LineThicknessProperty, value);
        }

        // Using a DependencyProperty as the backing store for LineThickness.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty LineThicknessProperty =
            DependencyProperty.RegisterAttached("LineThickness", typeof(double), typeof(ChartDrawingElement), new FrameworkPropertyMetadata(1.0, FrameworkPropertyMetadataOptions.Inherits));



    }
}
